var app = angular.module("classAdd", []);
app.controller("clazz", function ($scope, $http) {
    var c = {};
    c.cname = "软工1班";
    $scope.c = c;
    $scope.submitForm = function () {
        alert(JSON.stringify(c));
        $http({

            method:'post',

            url:'ClassAddServlet',

            data: JSON.stringify($scope.c)

        }).success(function(req){

            console.log(req);
            $scope.datas = req;
        });
        console.log($scope.chkVar);
        console.log($scope.sex);
    }
});